package com.jn.picasso.views;

import android.os.Bundle;
import android.webkit.WebView;
import androidx.appcompat.app.AppCompatActivity;
import com.jn.picasso.R;

public class QRCodeActivity extends AppCompatActivity {
    private WebView mWebView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_qrcode);

        mWebView = findViewById(R.id.webView);

        String url = getIntent().getStringExtra("url");
        String qrcodeUrl = "https://api.oioweb.cn/api/qrcode/encode?text=" + url + "&m=2&type=svg&size=15";

        mWebView.loadUrl(qrcodeUrl);
    }
}
